﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;


namespace Pay.DTO {
    /// <summary>
    /// 文章查询条件
    /// </summary>
    public class ArticleQuery : PageQuery {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string mobile { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? start_time { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? end_time { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public long merchant_id { get; set; }

        /// <summary>
        /// 我的id
        /// </summary>
        public long my_id { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public ArticleStatus status { get; set; }

        /// <summary>
        /// 是否加精品栏 0否 1是
        /// </summary>
        public bool? is_highlight { get; set; }
        /// <summary>
        /// 是否缓存
        /// </summary>
        public bool is_cache { get; set; }
        /// <summary>
        /// 0 帖子 1 帮助中心
        /// </summary>
         public int type { get; set; }
    }

    /// <summary>
    /// APP文章查询条件
    /// </summary>
    public class AppArticleQuery : PageQuery {

        /// <summary>
        /// 用户id
        /// </summary>
        [JsonIgnore]
        public long merchant_id { get; set; }

        /// <summary>
        /// 我的id
        /// </summary>
        [JsonIgnore]
        public long my_id { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [JsonIgnore]
        public ArticleStatus status { get; set; }

        /// <summary>
        /// 是否加精品栏 0否 1是
        /// </summary>
        public int is_highlight { get; set; }
    }


    /// <summary>
    /// 回复文章查询条件
    /// </summary>
    public class ReplyArticleQuery : PageQuery {
        /// <summary>
        /// 文章id
        /// </summary>
        public long article_id { get; set; }

        /// <summary>
        /// 当前用户id
        /// </summary>
        [JsonIgnore]
        public long merchant_id { get; set; }

        /// <summary>
        /// 是否缓存
        /// </summary>
        public bool is_cache { get; set; }
    }

}
